
JY = {}

JY.Log = require('LuaScripts/FrameWork/Utils/Log').New()

--将table内容转换成字符串然后打印出来
--一般调用方式 ty.Inspect(table)b 
JY.Inspect = require('LuaScripts/FrameWork/Utils/inspect')

function JY:Init( ... )
	JY.Log:Info('JY:Init :'..CS.UnityEngine.Time.realtimeSinceStartup)
	-- JY.Optimizer = require('LuaScripts/FrameWork/Utils/DataTableOptimizer.lua')	--Data format optimization  only one time before take apk

	JY:Test()
	JY:Test1()

end

function JY:Test( test )
	print('test')
	print(tostring(test))
	print(tostring(JY))
end

function JY.Test1( test1 )
	print('test1')
	print(tostring(test1))
end

function JY:EncodeTable( table )
	if type(table) ~= "table" then
		return
	end
	for k,v in pairs(table) do
		print('---->>Common  '..tostring(table)..'  k--> '..type(k)..'--->'..tostring(k)..'  v-->  '..type(v)..'--->'..tostring(v))
	end
end

--Set JY is read_only
JY._newindex = function ( t,k,v )
	JY.Log:Error('Attempt to update a read-only table. key is '..k)
end

return JY
